package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.EcMaterielElements;
import com.ndp.fb.rdb.model.EcMaterielElementsExt;

import java.util.List;

/**
 * Created by infi.he on 2016/4/28.
 */
public interface EcMaterielElementsRdbService {
    Long save(EcMaterielElements ecTemplateElements);

    List<EcMaterielElements> findByMaterielId(Long MaterielId);

    List<EcMaterielElementsExt> findExtByMaterielId(Long id);

    void deleteElements(Long id);

    EcMaterielElements findByMaterielIdAndElementIdAndParentCode(Long materielId, Long elementId, String parentCode);
}
